@extends('home.layouts')

@section('content')
  <div class="container">
    <div class="row">
    <div id="content" class="col-sm-9">      <h1>修改密码</h1>
        <form action="{{ route('password.update') }}" method="post" enctype="multipart/form-data" class="form-horizontal">

          <fieldset>
            <legend>修改密码</legend>
            @component("home.components.text-input", ['label' =>'原密码', 'name'=>"old_password", 'default' => '','type' => 'password'])
            @endcomponent
             @component("home.components.text-input", ['label' =>'新密码', 'name'=>"password", 'default' => '', 'type' => 'password'])
            @endcomponent
             @component("home.components.text-input", ['label' =>'确认密码', 'name'=>"password_confirmation", 'default' => '', 'type' => 'password'])
            @endcomponent
          </fieldset>
          @csrf
          @method('PUT')
          <div class="buttons clearfix">
            <div class="pull-right">
              <input type="submit" value="繼續" class="btn btn-primary">
            </div>
          </div>
        </form>
        @component('home.components.error') @endcomponent
      </div>
    </div>
  </div>
@endsection